package com.atguigu.mvc.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @RequestMapping(value = "/")
    public String index(){
        // 返回去掉前缀和去掉后缀的方法
        return "index";
    }

    @RequestMapping("/hello")
    public String toTarG(){
        return "target";
    }

}
